import request from '@/utils/request'

// 免验证码登录
export const login = (username, password)  => {
  return request.post('/api/login_ex', { username, password })
}

// 获取会话运行时信息
export const getSessionRuntimeInfo = (session_id, uid) => {
  return request.get(`/api/session/stats`, { session_id, uid })
}

// 获取服务器信息
export const getServerInfo = (uid) => {
  return request.get('/api/info', { uid })
}